<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\api\controller;

use cmf\controller\ApiController;
use app\portal\model\PortalAdPostModel;
use app\portal\service\PostAdService;
use app\portal\model\PortalAdCategoryModel;
use think\Db;

class IndexController extends ApiController
{

    /**
     * 获取投放的广告列表
     */
    public function getAdList()
    {
        $data = Db::name('PortalAdPost')->where('drop_status',2)->select();
        print_r($data);
        print_r(json_encode($data));
//        var_dump($data);

    }


}
